using NUnit.Framework;

namespace Crawler.Tests
{
	/// <summary>
	/// Summary description for TestKey.
	/// </summary>
	[TestFixture]
	public class TestKey
	{	
		Key key1, key2, key3;

		public TestKey()
		{
		}

		[SetUp]
		public void Initialize() {
			key1 = new Key(@"C:\Dump");
			key2 = new Key(@"C:\Heap");
			key3 = new Key(@"C:\Dump");
		}
		
		[Test]
		public void TestEqual() {
			Assertion.AssertEquals("",key1,key1);
			Assertion.AssertEquals("",false,key1==key2);  
			Assertion.AssertEquals("",false,key1==key3);  
		}

		public void TestHashCode() {
			Assertion.AssertEquals("",2053233804,key1.GetHashCode());
		}
	}
}
